package com.crm.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@Entity
@Table(name="photos")
@ApiModel("图片")
public class Photos implements Serializable{

	private static final long serialVersionUID = 1L;

	@Id
	@GenericGenerator(name = "system-uuid", strategy = "uuid2")
	@GeneratedValue(generator = "system-uuid")
	@ApiModelProperty(value="图片id",required=true,hidden = true)
	private String id;
	
	@ApiModelProperty(value="图片标题",required=true)
	private String title;
	
	@ApiModelProperty(value="图片点击数")
	private Integer click;
	
	@ApiModelProperty(value="图片添加时间",required=true,hidden = true)
	private Date addTime;
	
	@ApiModelProperty(value="图片id",required=true)
	private String content;
	
	@ApiModelProperty(value="图片摘要",required=true)
	private String tabloid;
	
	@ApiModelProperty(value="图片类别",required=true)
	private String category;
	
	@ApiModelProperty(value="图片链接",required=true)
	private String url;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getClick() {
		return click;
	}

	public void setClick(Integer click) {
		this.click = click;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTabloid() {
		return tabloid;
	}

	public void setTabloid(String tabloid) {
		this.tabloid = tabloid;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	@Override
	public String toString() {
		return "Photos [id=" + id + ", title=" + title + ", click=" + click + ", addTime=" + addTime + ", content="
				+ content + ", tabloid=" + tabloid + ", category=" + category + ", url=" + url + "]";
	}

}
